package cn.jja8.bukkit.bukkitwindowtool.window.error;

import org.bukkit.Bukkit;

/**
 * 窗口运行异常
 * */
public class WindowError extends Error{
    String in;
    public WindowError(String message) {
        super(message);
        in = message;
    }

    public WindowError(Throwable cause, String message) {
        super(cause);
        this.in = message;
    }

    @Override
    public void printStackTrace() {
        Bukkit.getLogger().severe("bukkit-window-tool的Window模块运行时发生异常，原因："+in);
        Bukkit.getLogger().severe("下方是详细异常信息，如需反馈请将其完整反馈给开发者。");
        super.printStackTrace();
    }
}
